package RLK_SOCK;

import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Example_01 {
    public void accept() throws IOException {
        ServerSocket serverSocket = null;
        try {
            serverSocket = new ServerSocket(1034);
            Socket socket = serverSocket.accept();   // socket created
            final OutputStream outputStream = socket.getOutputStream();
            sendStatus(outputStream);
            outputStream.close();
        } finally {
            serverSocket.close();
        }
    }

    private void sendStatus(OutputStream outputStream) {

    }
}
